package com.nowcoder;

import java.util.Scanner;

/**
 * 长度为8的字符串分割
 * 输入一个字符串，请按长度为8拆分每个输入字符串并进行输出；长度不是8整数倍的字符串请在后面补数字0，空字符串不处理。
 */
public class SplitStringByLength {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String source = in.nextLine();
        while (source.length() > 0) {
            if (source.length() <= 8) {
                System.out.print(source);
                for (int i = 0; i < 8-source.length(); i++) {
                    System.out.print(0);
                }
                source = "";
            }else{
                System.out.print(source.substring(0,8));
                source = source.substring(8);
            }
            if(source.length()>0){
                System.out.println("");
            }
        }
    }
}
